package com.xique.park.constant.message;

/**
 * Created by IntelliJ IDEA.
 * 消息中用到的常量
 * @author Administrator
 * description:
 * path: park2020-com.jzy.constant-messageConstants
 * date: 2020/7/13 13:23
 */
public class MessageConstants {
    /**
     * 产品类型：
     * p:停车类产品；
     * a:门禁类产品；
     * v:访客类产品；
     */
    public static final char CLASS_P = 'p';
    public static final char CLASS_A ='a';
    public static final char CLASS_V = 'v';

    /**
     * 当前协议版本号
     * json格式版本号为字符串
     * 二进制格式版本号为整形
     */
    public static final String CUR_JSON_VER = "1.0";
    public static final byte CUR_BIN_VER = 1;

    /**
     * json数据key
     */
    public static final String KEY_CLASS = "class";
    public static final String KEY_VER = "ver";
    //请求/应答标识
    public static final String KEY_FLAG = "flag";
    //请求
    public static final String KEY_FLAG_ASK = "ask";
    //应答
    public static final String KEY_FLAG_ACK = "ack";

    public static final String KEY_CMD = "cmd";
    public static final String KEY_SN = "sn";
    public static final String KEY_MSG_ID = "msgid";
    public static final String KEY_TS = "ts";
    public static final String KEY_DT = "dt";

    //dt中以后扩充的属性都放在ext下
    public static final String EXT = "ext";
}
